package com.ygp.synchronizedtest;

/**
 * <Description> <br>
 *
 * @author linmiaolai@sanyygp.com<br>
 * @version 1.0<br>
 * @date 2021/10/19 <br>
 */
public class SynchronizedTest4 {
    private static Object LOCK = new Object();
    private static int counter = 0;

    public static void main(String[] args) {
        synchronized (LOCK) {
            counter++;
        }
    }
}
